Repository navigation
docs(skills): clear the GraphQL residue from the published catalog and declare sharingModel on its four object examples - #11141
Merged
Conversation
…age mount `/graphql` is not mounted: `packages/runtime/src/http-dispatcher.ts:2069` is `// /graphql removed — GraphQL is not in the product plan (#2462 follow-on)`, there is no `createGraphQLDomain` among the registered domains (0 hits under `packages/*/src`), and `handleGraphQL` survives only in CHANGELOGs. Five sites in the published catalog still described it as a live ObjectStack surface — the input that generates client code against a route which 404s. - `objectstack-api` tags: drop `graphql` (the description one line above already lists no GraphQL surface). - `objectstack-data` `apiEnabled`: REST + MCP, the two surfaces the flag actually gates (`packages/mcp/src/stdio-data-bridge.ts:260` reads `enable.apiEnabled === false`). - `objectstack-platform` mount line: `createHonoApp` mounts auth and discovery only. `/storage` was stale on the same line and is corrected in the same edit — `packages/adapters/hono/src/index.ts:423` is `// --- Storage: deliberately NOT mounted (#4087) ---`, and the dispatcher carries the matching "No `/storage` domain (#4087)" note. - `objectstack-formula`: the `GraphQL.ComputedField` CEL-host row and the `api/graphql` cache-key row are deleted rather than replaced — no real surface fills either slot (the computed-field CEL host is already the `Field` / `type: 'formula'` row above it, and no cache-key template surface exists: `system/cache` takes plain key patterns, `api/http-cache` has none). The mirror row in `content/docs/ai/skills-reference.mdx` moves in this same commit, per the card's anti-drift requirement — never before or after the skill it catalogs. Bundle effect: -27 tokens on the published skills ratchet. Fixes #10846
…n skills/ for it The 4 `ObjectSchema.create()` examples inside os:check-marked blocks in the published catalog omitted `sharingModel`. The omission type-checks clean (`z.enum([...]).optional()`, no `.default()`) while `os validate` rejects it as severity: 'error' (`SECURITY_OWD_UNSET`) — so a reader copying a canonical example got a failing build with no hint from the page, multiplied by every AI that copies the catalog verbatim. Values, per the #10714 sweep's shape: - `account`, `invoice`, `support_case` (objectstack-data) -> `'private'`, the rule's own recommended default. DEFAULTED, not mirrored: `examples/` carries no object of these names. The showcase app's `showcase_account` / `showcase_invoice` are differently-named objects whose `public_read_write` is an explicit ADR-0090 D1 grandfather stamp ("record isolation for this demo object is RLS-owned / intentionally public") — a demo's stamp, not a value to teach. - `crm_lead` (objectstack-upgrade) -> `'public_read_write'`, MIRRORED: `examples/app-crm/src/objects/lead.object.ts` is the same object name, and the skill and the app disagreeing about one object's OWD is the drift this mirrors away. Flagged for review in the PR body — the real object's value is itself a demo grandfather stamp. Only then the gate half. `check-doc-security-posture` grows the `skills/` root its own header recorded as deferred, following `check-skill-examples`' SOURCE_ROOTS two-root/two-marker shape: `.md` + `<!-- os:check -->` for skills, `.mdx` + the MDX comment spelling for docs, since MDX has no HTML comments. Sequencing is the point — extending the roots before the 4 fixes would have made the gate born red. Two holes the generalization could have opened, closed here: - The anti-idle floor is now PER ROOT. A root scanned with the wrong marker reads zero marked blocks, and a single whole-corpus counter would have stayed green on the other root's census while a governed corpus went unjudged. - An exemption entry belonging to no root would be dropped by the per-root routing and never judged stale, silently ending the ledger's self-invalidating discipline. It is now a loud refusal. Self-test grows a skills leg proving the .md root judges its own marker, and that neither spelling crosses into the other root. No changeset: `packages/lint`'s published `files` is ["dist","README.md", "CHANGELOG.md"] with no `bin` and dist-only `exports`, so `scripts/**` ships to no consumer, and this commit touches no package `src/`. The PR declares that with `skip-changeset`. Fixes #10925
Contributor
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. |
os-zhuang
marked this pull request as ready for review
August 23, 2026 00:38
os-zhuang
marked this pull request as draft
August 23, 2026 00:38
…23 maintainer ruling The four sharingModel keys commit 2 adds are required by the gating-tier SECURITY_OWD_UNSET rule and cost 30 tokens in two files whose ceilings sat at exactly zero headroom. Maintainer ruling, 2026-08-23, on PR #11141 (option A of the three put to them, verbatim): 「A:提天花板(推荐)」 — data 13797→13817, upgrade 8325→8335, quoted in the PR body as this gate's own header requires. The same ruling confirmed crm_lead keeps the mirrored 'public_read_write' (「镜像 public_read_write(推荐)」), so no diff change accompanies the raise. Bundle-level the PR still nets +3 tokens (commit 1 pays back 27 elsewhere); gate and its 33-case self-test green at this commit. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MsbKEG4LtERSLaDrbehM3e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10846
Fixes #10925
Two cards on the published skills catalog, one commit each. Both are corrections to
skills/**— the customer/AI-facing surface — so the whole PR is GOVERNED: draft, humanmerge, no auto-merge, no enqueue.
Commit 1 — #10846: five GraphQL residue sites + the mirror
/graphqlis not mounted. Re-verified at fix time againstorigin/mainafe1c4e, nottaken from the card:
packages/runtime/src/http-dispatcher.ts:2069—// /graphql removed — GraphQL is not in the product plan (#2462 follow-on).createGraphQLDomainunderpackages/*/src;handleGraphQLsurvives only in CHANGELOGspackages/spec/src/system/core-services.zod.ts:130-132independently records thatgraphqlwas never aCoreServiceNameskills/objectstack-api/SKILL.mdtagsgraphql— the description one line above already lists no GraphQL surfaceskills/objectstack-data/SKILL.mdapiEnabledpackages/mcp/src/stdio-data-bridge.ts:260readsenable.apiEnabled === false)skills/objectstack-platform/SKILL.mdmount linecreateHonoAppmounts auth and discovery onlyskills/objectstack-formula/SKILL.mdGraphQL.ComputedFieldrowskills/objectstack-formula/SKILL.mdapi/graphqlcache-key rowThe
/storagehalf of the platform line was verified before touching, as the cardasked, and the card is right — so it is corrected in the same edit, same line, same defect
class:
packages/adapters/hono/src/index.ts:423is// --- Storage: deliberately NOT mounted (#4087) ---, and the dispatcher carries the matchingNo /storage domain (#4087)note.
service-storagemounts its own surface.Deletion rather than replacement on the two formula rows: nothing real fills either
slot. The computed-field CEL host is already the
Field/type: 'formula'row above it,and no cache-key template surface exists —
system/cachetakes plain key patterns andapi/http-cache.zod.tshas no key or template member at all.The mirror row in
content/docs/ai/skills-reference.mdxmoves in this same commit, per thecard's anti-drift requirement. Rows naming GraphQL as a general industry concept were left
alone (the card's not-in-scope note); after this commit
skills/**has zero GraphQL hits.Commit 2 — #10925: four
sharingModeldeclarations, then the gate rootThe 4
ObjectSchema.create()examples omittedsharingModel— type-checks clean, whileos validaterejects it as severityerror(SECURITY_OWD_UNSET).objectstack-dataaccount'private'objectstack-datainvoice'private'objectstack-datasupport_case'private'objectstack-upgradecrm_lead'public_read_write'examples/carries no object namedaccount,invoiceorsupport_case. The showcaseapp's
showcase_account/showcase_invoiceare differently-named objects, and theirpublic_read_writeis an explicit ADR-0090 D1 grandfather stamp — the source comment reads"record isolation for this demo object is RLS-owned / intentionally public". A demo's
stamp is not a value to teach, so those three take the rule's own recommended default.
crm_leadis the one exact name match:examples/app-crm/src/objects/lead.object.tsisname: 'crm_lead', so the skill and the app disagreeing about one object's OWD would bereal drift.
grandfather stamp, so mirroring it teaches
public_read_writein the upgrade skill. Thealternative (
'private', consistent with the other three) trades app-consistency for asafer taught default. Flagged rather than decided. Resolved 2026-08-23 — the
maintainer ruled, of the two options put to them (verbatim): 「镜像 public_read_write(推荐)」.
The mirrored value stands; no diff change.
Only then the gate half.
check-doc-security-posturegrows theskills/root its ownheader recorded as deferred, following
check-skill-examples.ts'sSOURCE_ROOTStwo-root/two-marker shape (
.md+<!-- os:check -->;.mdxkeeps the MDX commentspelling, since fumadocs-mdx fails the build outright on HTML comments). Sequencing is the
point — extending the roots first would have made the gate born red.
Two holes the generalization could have opened, closed in the same commit:
blocks, and one whole-corpus counter would have stayed green on the other root's census
while a governed corpus went unjudged);
never judged stale, silently ending the ledger's self-invalidating discipline — now a
loud refusal.
check:skills-token-ratchet— was RED, cleared by maintainer ruling (2026-08-23)What was red, kept for the record:
Every ceiling in the catalog sat at exactly zero headroom before this PR. The four
sharingModellines are required by a gating-tier security rule, and they cost 30 tokensacross two files that have nowhere to put them. The gate names the only two remedies, and
both are marked
⛔ MAINTAINER-ONLY: delete text in the same file, or raise the ceiling ina PR quoting a maintainer ruling.
The author took neither remedy unilaterally — deleting published-catalog prose to fund a
fix is an editorial call on the surface the maintainer ruled the platform's highest-value
one, and raising a ceiling is explicitly not an author's step. The ruling above is what
authorizes the raise.
Worth weighing, because the per-file unit hides it: the bundle as a whole grows by 3
tokens. Commit 1's residue deletions pay back 27 of the 30 — they just land in the wrong
files.
(Commit 1 is clean on its own — it only shrinks, -27 tokens — and was the fallback
option C; the ruling made splitting unnecessary.)
Value-density readings (
skills/**governed-surface requirement)Whole-file, before → after:
ceil(utf8 bytes / 4))objectstack-api/SKILL.mdobjectstack-data/SKILL.mdobjectstack-formula/SKILL.mdobjectstack-platform/SKILL.mdobjectstack-upgrade/SKILL.mdWhole package (all 11 published SKILL.md): 10504 → 10506 lines (+2), 117919 → 117922
tokens (+3). No prose was expanded; every addition is a required schema key and every
deletion is a removed-surface assertion.
Verification
Gates derived with
node scripts/pm/dispatch-gates.mjs(no hand-fed paths) at the finalcommit
e87585fa5, then run — 25 families, 24 green, 1 red (the ratchet above).Also green:
check:doc-formula-expressions,doc-anchors,doc-frontmatter,docs-audit-scope,docs-redirects,published-readme-links,pm-governed-merges,cross-package-test-inputs,slot-lookup,test-source-alias,type-source-resolution,ci-filter-parity,plugin-teardown-shape,affected-docs, and the fourspec-liveness-checkfamilies.Reverse-verification of the extended gate (from the committed state, restore proven on
disk): re-removing the
support_casesharingModeltook the gate red at exactly thatsite —
and restoring returned it to the green census above. The mutation was confirmed on disk
before the run (
sharingModelcount 3 → 2 plus the site read back), not inferred from theeditor's exit code. Noting one real stumble for the record: the restore trap fired with the
wrong working directory and printed a false "RESTORED" over a
pathspec did not matcherror — caught by re-reading
git status, and the tree was restored by hand andre-verified byte-identical before anything else ran.
No changeset
packages/lint's publishedfilesis["dist","README.md","CHANGELOG.md"], with nobinand dist-only
exports—scripts/**ships to no consumer. This PR touches no packagesrc/, so no published artifact changes and nothing releases. Declared withskip-changesetrather than an empty-frontmatter changeset, whichscripts/check-empty-changeset.mjsrejects outright.Out of scope, filed not fixed
#11140 — the same GraphQL residue class two sites further in, in package SOURCE comments
(
packages/spec/src/data/object.zod.ts:252,packages/adapters/hono/src/index.ts:105-106).The hono JSDoc is the likely origin of the stale platform-skill line this PR fixes,
/storageincluded. Left out deliberately: different surface, different gate family, andfolding it in would be unreviewable scope creep on a governed diff.
Generated by Claude Code
Generated by Claude Code